#include "scheduler.h"

void TaskExeution(void)
{
    for (uint8_t i = 0; i < task_num; i++)
    {
        if ((int32_t)(uwTick - (schedul_task[i].task_interval + schedul_task[i].last_run_tick)) >= 0)
        {
            schedul_task[i].last_run_tick = uwTick;
            schedul_task[i].TaskFunc();
        }
    }
}
